import tkinter as tk
import sys
import os
import logging

# 配置日志记录
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')

# 获取项目根目录
project_root = os.path.dirname(os.path.abspath(__file__))
# 将项目根目录添加到 sys.path
sys.path.insert(0, project_root)

from ui.app import GiftManagerApp

if __name__ == "__main__":
    root = tk.Tk()
    app = GiftManagerApp(root)
    root.mainloop()